package;

import org.flixel.FlxSprite;
import org.flixel.FlxState;

class MenuState extends FlxState
{
	private var s: FlxSprite;

	public override function create(): Void
	{
		s = new FlxSprite(200, 100, "assets/data/cara.png");
		this.add(s);
		trace("duck you!!!");
	
		//Agrego Sprite	
		s = new FlxSprite(400, 200, "assets/data/rigby.png");
		this.add(s);
		
		//Agrego actor con posición aleatoria
		s = new FlxSprite(Std.random(640),Std.random(480), "assets/data/finn.png");
		this.add(s);
		
		//Agrego 50 actores con posición aleatoria
		for (i in 0...50)
		{
			s = new FlxSprite(Std.random(640),Std.random(480), "assets/data/finn.png");
			this.add(s);
		}
		
	}

	public override function update(): Void
	{
		super.update();
	}

	public override function draw(): Void
	{
		super.draw();
	}	
}